package cn.yh.shop.admin.model;

import java.sql.Timestamp;

/**
 * @Description:商城首页新闻管理类
 * @author:"许荣斐"
 * @time:2016年12月14日 下午6:47:26
 */
public class News implements java.io.Serializable {

	/**
	 * @Description: id : 新闻id
	 */
	private Integer id; 
	
	/**
	 * @Description: title : 头条标题
	 */
	private String title; 
	
	/**
	 * @Description: summary : 头条摘要
	 */
	private String summary; 
	
	/**
	 * @Description: content :头条内容
	 */
	private String content; 
	
	/**
	 * @Description: time : 头条发布时间
	 */
	private Timestamp time;
	
	/**
	 * @Description: addPeopleName : 添加人姓名
	 */
	private String addPeopleName;
	
	/**
	 * @Description: addTime : 添加时间
	 */
	private Timestamp addTime;
	
	/**
	 * @Description: altPeopleName : 修改人姓名
	 */
	private String altPeopleName;
	
	/**
	 * @Description: altTime : 修改时间
	 */
	private Timestamp altTime;
	

	/**
	 * @Description:无参构造方法
	 */
	public News() {
	}

	/**
	 * @Description:有参构造方法
	 */
	public News(String title, String summary, String content, Timestamp time) {
		this.title = title;
		this.summary = summary;
		this.content = content;
		this.time = time;
	}

	/**
	 * @Description:有参构造方法
	 */
	public News(String title, String summary, String content, Timestamp time,
			String addPeopleName, Timestamp addTime, String altPeopleName,
			Timestamp altTime) {
		this.title = title;
		this.summary = summary;
		this.content = content;
		this.time = time;
		this.addPeopleName = addPeopleName;
		this.addTime = addTime;
		this.altPeopleName = altPeopleName;
		this.altTime = altTime;
	}

	/**
	 * @Description:get,set 方法
	 * @return
	 * Integer
	 * @exception:
	 * @author: "许荣斐"
	 * @time:2016年12月14日 下午6:50:20
	 */
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSummary() {
		return this.summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Timestamp getTime() {
		return this.time;
	}

	public void setTime(Timestamp time) {
		this.time = time;
	}

	public String getAddPeopleName() {
		return this.addPeopleName;
	}

	public void setAddPeopleName(String addPeopleName) {
		this.addPeopleName = addPeopleName;
	}

	public Timestamp getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Timestamp addTime) {
		this.addTime = addTime;
	}

	public String getAltPeopleName() {
		return this.altPeopleName;
	}

	public void setAltPeopleName(String altPeopleName) {
		this.altPeopleName = altPeopleName;
	}

	public Timestamp getAltTime() {
		return this.altTime;
	}

	public void setAltTime(Timestamp altTime) {
		this.altTime = altTime;
	}

	@Override
	public String toString() {
		return "新闻信息:[标题:"+title+";摘要:"+summary+"]";
	}
	
}